package com.serviceprovider.business.module.admin.license.services.dao.interfaces;

//~--- non-JDK imports --------------------------------------------------------

import com.serviceprovider.business.module.admin.license.model.LicenseRoleApply;
import com.serviceprovider.business.utility.maintenance.settings.RoleUtils;

import org.springframework.security.annotation.Secured;

//~--- JDK imports ------------------------------------------------------------

import java.util.List;

public interface ILicenseRoleApplyService {

//  @Secured({ RoleUtils.ROLE_USER, "AFTER_ACL_COLLECTION_READ" })
    List<LicenseRoleApply> findAll();

    @Secured({ RoleUtils.ROLE_ADMINISTRATOR })
    void insertLicenseRoleApply(LicenseRoleApply licenseRoleApply);

    @Secured({ RoleUtils.ROLE_ADMINISTRATOR, "ACL_OBJECT_WRITE" })
    void updateLicenseRoleApply(LicenseRoleApply licenseRoleApply);

    // @Secured({RoleUtils.ROLE_ADMINISTRATOR,"ACL_OBJECT_WRITE"})
    void save(List<LicenseRoleApply> list);
}



